package com.qvtu.poetry.mapper;

import com.qvtu.poetry.entry.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author zxz
 * @description 针对表【t_user(用户表)】的数据库操作Mapper
 * @createDate 2025-10-11 10:42:09
 * @Entity com.qvtu.poetry.entry.User
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from poetry_system.t_user where username = #{username}")
    User findByUsername(String username);


    @Select("select * from poetry_system.t_user where email = #{email}")
    User findByEmail(String email);
}




